// domain/port/BorrowRecordRepositoryPort.java
package com.library.bookservice.domain.port;

import com.library.bookservice.domain.model.BorrowRecord;
import java.util.List;

/**
 * 借阅记录仓库端口
 * 定义借阅记录数据访问的契约接口
 */
public interface BorrowRecordRepositoryPort {
    BorrowRecord save(BorrowRecord record);
    BorrowRecord findById(Long id);
    List<BorrowRecord> findByBookId(Long bookId);
    List<BorrowRecord> findByBorrowerName(String borrowerName);
    List<BorrowRecord> findByNotReturned();
    void deleteById(Long id);
}